﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Quiz.aspx.vb" Inherits="Training.Quiz" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training</title>
<link rel="Stylesheet" type="text/css" media="screen" href="css/publicStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="ctr">
        <asp:Image ID="imgLogo" Visible="false" runat="server" />
        <h2><asp:Label ID="lblQuizTitle" runat="server" Text=""></asp:Label></h2>
        
        <p id="allQs" runat="server"><b>All questions must be answered</b><br />
        <span class="Alert">(Images can be clicked for larger view)</span></p>
        
        <!-- quiz -->
        <div style="text-align:left;width:660px;margin:0 auto;" id="main" runat="server">
            <ol type="1">
                <asp:Repeater ID="rptQuestions" runat="server">
                    <ItemTemplate>
                        <li> <%#ShowThumb(Eval("QuestionImage"), Eval("ImagePlacement"))%>
                            <%#Eval("Question")%><br />
                            <%#CreateQuestionRBL(Eval("QuestionID"))%>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ol>
        </div>
        
        <div id="interact" runat="server">
            <asp:Label ID="lblResult" runat="server" Text="" CssClass="Alert"></asp:Label>
            
            <br />
            
            <asp:Button ID="btnComplete" runat="server" Text="Complete Quiz" CssClass="button" />
            &nbsp; 
            <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="button" />
        </div>
        
        <!-- post quiz -->
        <div id="postquiz" runat="server" visible="false">
            <asp:Label ID="lblPostMsg" runat="server" Text="" CssClass="Alert"></asp:Label>
            
            <br /><br />
            
            <!-- missed questions for failed quiz -->
            <div style="width:550px;margin:0 auto;text-align:left;" 
                id="missing" runat="server" visible="false">
                <p><b>You missed the following questions:</b></p>
                <asp:Repeater ID="rptMissed" runat="server" Visible="false">
                    <ItemTemplate>
                        &bull; <%#Eval("Question")%><br />
                    </ItemTemplate>
                </asp:Repeater>
            </div>
            
            <p><b><asp:HyperLink ID="hypCert" runat="server" 
                Text="- View/Print Certificate -"></asp:HyperLink></b>
            <b><asp:HyperLink ID="hypRetake" runat="server" 
                Text="- Retake Quiz -"></asp:HyperLink></b></p>
            
            <p id="acro" runat="server">
            Adobe&reg; Reader&reg; is required to view/print your Certificate<br />
            <a href="http://get.adobe.com/reader/" 
                target="_blank"><img src="images/get_adobe_reader.gif" alt="get acrobat reader" 
                style="border-style:none;" /></a></p>
        </div>
        
        
        <br /><br />
        
        <a href="Training.aspx">Return to Training Page</a>
        &nbsp; - &nbsp;
        <a href="Logout.aspx">Logout</a>
    </div>
    </form>
</body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8222027-2");
pageTracker._trackPageview();
} catch(err) {}</script>
</html>
